package com.jxc.jxc01.yk.entity;

import java.util.Objects;

/**
 * 销售退货
 */
public class SalesReturn {
    public int id;
    //销售单号:销售中的单号
    public int salesnumber;
    //退货单号
    public int goods_returned_num;
    //退购数量
    public int goods_returned_count;
    //退购单价
    public double goods_returned_price;
    //退购总价
    public double goods_returned_total;
    //退货时间
    public String goods_returned_time;
    //退采原因
    public String goods_returned_reason;
    //状态
    public String condition;
    //备注
    public String comment;


    public SalesReturn() {
    }

    public SalesReturn(int id, int salesnumber, int goods_returned_num, int goods_returned_count, double goods_returned_price, double goods_returned_total, String goods_returned_time, String goods_returned_reason, String condition, String comment) {
        this.id = id;
        this.salesnumber = salesnumber;
        this.goods_returned_num = goods_returned_num;
        this.goods_returned_count = goods_returned_count;
        this.goods_returned_price = goods_returned_price;
        this.goods_returned_total = goods_returned_total;
        this.goods_returned_time = goods_returned_time;
        this.goods_returned_reason = goods_returned_reason;
        this.condition = condition;
        this.comment = comment;
    }

    /**
     * 获取
     * @return id
     */
    public int getId() {
        return id;
    }

    /**
     * 设置
     * @param id
     */
    public void setId(int id) {
        this.id = id;
    }

    /**
     * 获取
     * @return salesnumber
     */
    public int getSalesnumber() {
        return salesnumber;
    }

    /**
     * 设置
     * @param salesnumber
     */
    public void setSalesnumber(int salesnumber) {
        this.salesnumber = salesnumber;
    }

    /**
     * 获取
     * @return goods_returned_num
     */
    public int getGoods_returned_num() {
        return goods_returned_num;
    }

    /**
     * 设置
     * @param goods_returned_num
     */
    public void setGoods_returned_num(int goods_returned_num) {
        this.goods_returned_num = goods_returned_num;
    }

    /**
     * 获取
     * @return goods_returned_count
     */
    public int getGoods_returned_count() {
        return goods_returned_count;
    }

    /**
     * 设置
     * @param goods_returned_count
     */
    public void setGoods_returned_count(int goods_returned_count) {
        this.goods_returned_count = goods_returned_count;
    }

    /**
     * 获取
     * @return goods_returned_price
     */
    public double getGoods_returned_price() {
        return goods_returned_price;
    }

    /**
     * 设置
     * @param goods_returned_price
     */
    public void setGoods_returned_price(double goods_returned_price) {
        this.goods_returned_price = goods_returned_price;
    }

    /**
     * 获取
     * @return goods_returned_total
     */
    public double getGoods_returned_total() {
        return goods_returned_total;
    }

    /**
     * 设置
     * @param goods_returned_total
     */
    public void setGoods_returned_total(double goods_returned_total) {
        this.goods_returned_total = goods_returned_total;
    }

    /**
     * 获取
     * @return goods_returned_time
     */
    public String getGoods_returned_time() {
        return goods_returned_time;
    }

    /**
     * 设置
     * @param goods_returned_time
     */
    public void setGoods_returned_time(String goods_returned_time) {
        this.goods_returned_time = goods_returned_time;
    }

    /**
     * 获取
     * @return goods_returned_reason
     */
    public String getGoods_returned_reason() {
        return goods_returned_reason;
    }

    /**
     * 设置
     * @param goods_returned_reason
     */
    public void setGoods_returned_reason(String goods_returned_reason) {
        this.goods_returned_reason = goods_returned_reason;
    }

    /**
     * 获取
     * @return condition
     */
    public String getCondition() {
        return condition;
    }

    /**
     * 设置
     * @param condition
     */
    public void setCondition(String condition) {
        this.condition = condition;
    }

    /**
     * 获取
     * @return comment
     */
    public String getComment() {
        return comment;
    }

    /**
     * 设置
     * @param comment
     */
    public void setComment(String comment) {
        this.comment = comment;
    }

    public String toString() {
        return "SalesReturn{id = " + id + ", salesnumber = " + salesnumber + ", goods_returned_num = " + goods_returned_num + ", goods_returned_count = " + goods_returned_count + ", goods_returned_price = " + goods_returned_price + ", goods_returned_total = " + goods_returned_total + ", goods_returned_time = " + goods_returned_time + ", goods_returned_reason = " + goods_returned_reason + ", condition = " + condition + ", comment = " + comment + "}";
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        SalesReturn that = (SalesReturn) o;
        return id == that.id && salesnumber == that.salesnumber && goods_returned_num == that.goods_returned_num && goods_returned_count == that.goods_returned_count && Double.compare(that.goods_returned_price, goods_returned_price) == 0 && Double.compare(that.goods_returned_total, goods_returned_total) == 0 && condition == that.condition && Objects.equals(goods_returned_time, that.goods_returned_time) && Objects.equals(goods_returned_reason, that.goods_returned_reason) && Objects.equals(comment, that.comment);
    }

    @Override
    public int hashCode() {
        return Objects.hash(id, salesnumber, goods_returned_num, goods_returned_count, goods_returned_price, goods_returned_total, goods_returned_time, goods_returned_reason, condition, comment);
    }
}
